namespace SumerCoreDevOps.Shared.Models.Messages;

/// <summary>
/// 日志流消息
/// </summary>
public class LogStreamMessage
{
    /// <summary>
    /// 任务ID
    /// </summary>
    public long TaskId { get; set; }

    /// <summary>
    /// 步骤ID
    /// </summary>
    public long StepId { get; set; }

    /// <summary>
    /// 日志内容
    /// </summary>
    public string LogContent { get; set; } = null!;

    /// <summary>
    /// 日志级别（Info, Warning, Error）
    /// </summary>
    public string LogLevel { get; set; } = "Info";

    /// <summary>
    /// 时间戳
    /// </summary>
    public DateTime Timestamp { get; set; }

    /// <summary>
    /// 是否为最后一条日志
    /// </summary>
    public bool IsEnd { get; set; }
}
